package com.wwg.market.ui.service.interfaces;

import com.google.gwt.user.client.rpc.RemoteService;
import com.wwg.market.ui.service.dto.GeneralCodeDto;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author gaoyang
 * @version $Id: $
 * @date 11-12-15 下午10:53
 */
public interface CodeService extends RemoteService {
    List<GeneralCodeDto> getRootGeneralCodes();

    List<GeneralCodeDto> getChildren(GeneralCodeDto parent);

    GeneralCodeDto saveOrUpdateCode(GeneralCodeDto codeDto);

    void delete(GeneralCodeDto codeDto);

    List<GeneralCodeDto> changeOrder(List<GeneralCodeDto> changeList);

    boolean checkCodeUnique(String code);



    List<GeneralCodeDto> getCodesByType(String code);


}
